package com.james.codeauto.common;

import com.intellij.ide.util.PropertiesComponent;



public class PropertiesComponentImp implements  IPropertiesComponent{


    public void setValue(String name, String value) {

        PropertiesComponent.getInstance().setValue(name, value);
    }

    public String getValue(String name) {

        return PropertiesComponent.getInstance().getValue(name);
    }

    public int getOrInitInt(String name, int defaultValue) {

        return PropertiesComponent.getInstance().getOrInitInt(name, defaultValue);
    }

    public String getValue(String name, String defaultValue) {

        return PropertiesComponent.getInstance().getValue(name, defaultValue);
    }

    public Boolean getBoolean(String name, boolean defaultValue) {

        return PropertiesComponent.getInstance().getBoolean(name, defaultValue);
    }
}
